import type { RouteRecordRaw } from "vue-router";

const pageRoutes: RouteRecordRaw[] = [
  {
    path: "/aix",
    component: () => import("@/views/Aix.vue"),
    meta: {
      title: "aix",
    },
  },
  {
    path: "/test",
    component: () => import("@/views/Test.vue"),
    meta: {
      title: "test",
    },
  },
  {
    path: "/tresjs_orbit_control",
    meta: {
      title: "orbit control",
    },
    component: () => import("@/views/TresJS/OrbitControlDemo.vue"),
  },
  {
    path: "/tresjs_orbit_control_text",
    meta: {
      title: "orbit control text",
    },
    component: () => import("@/views/TresJS/OrbitControlTextDemo.vue"),
  },
  {
    path: "/views/Input/index.vue",
    meta: {
      title: "input demo",
    },
    component: () => import("@/views/Input/index.vue"),
  },
];

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    component: () => import("@/Layout/DefaultLayout.vue"),
    children: [
      {
        path: "",
        component: () => import("@/views/Test.vue"),
        meta: {
          title: "测试",
        },
      },
      ...pageRoutes,
    ],
  },
];

export { routes, pageRoutes };
